package com.sais.manage.boot.building.dto;


import com.sais.manage.boot.building.entity.Building;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * 宿舍管理平台-宿舍楼保存DTO
 *
 * @author zwp
 * @date 2020/1/30
 */
@Data
@NoArgsConstructor
public class BuildingSaveDTO {

    private String ukId;
    private String code;
    private String name;
    private Integer gender;
    private Integer type;
    private Integer status;
    private Integer sort;

    public Building convert(){
        Building building = new Building();
        BeanUtils.copyProperties(this,building);
        return building;
    }
    
}
